package com.dduggs.utils;

/**
 * Created by songkaiang on 2016/12/14.
 */
public class ResponseDTO {

    /** 错误信息 **/
    private Error error;

    /** 正确返回数据 **/
    private Object response;

    public Error getError() {
        return error;
    }

    public void setError(Error error) {
        this.error = error;
    }

    public Object getResponse() {
        return response;
    }

    public void setResponse(Object response) {
        this.response = response;
    }
}

class Error{

    /** 错误描述 **/
    private Object errorInfo;

    /** 错误编码 **/
    private int errorCode = 1000;

    public Error(int errorCode, Object errorInfo){
        this.errorCode = errorCode;
        this.errorInfo = errorInfo;
    }

    public Object getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(Object errorInfo) {
        this.errorInfo = errorInfo;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
